/*
 * @Description: 登录相关接口API
 * @Author: Liu Kunpeng
 * @Date: 2021-07-13 19:44:11
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-12-23 10:21:57
 * @Params get请求 params: token-----------?token=xxxxx
 * @Params get请求 params: { token }-------?token=token=xxxxx   会有额外的添加键
 */
import request from '@/utils/request'
//登录
export function loginApi(loginForm){
    return request({
        url: '/scanning/security/login',
        method: 'post',
        params: loginForm
    })
}
//获取用户信息
export function getUserInfoApi(){
    return request({
        url: '/admin/acl/index/userInfo',
        method: 'get',
    })
}
//登出
export function logoutApi(){
    return request({
        url: '/scanning/security/logout',
        method: 'post',
    })
}
//修改密码
export function modifyPassword(data){
    return request({
        url: '/admin/acl/index/updatePassword',
        method: 'get',
        params: data
    })
}